3.2.3 \(\int \frac {(a+b \log (c x^n))^2 \log (d (e+f x^2)^m)}{x^5} \, dx\) [103]

Optimal. Leaf size=356 \[ -\frac {7 b^2 f m n^2}{32 e x^2}-\frac {b^2 f^2 m n^2 \log (x)}{16 e^2}-\frac {3 b f m n \left (a+b \log \left (c x^n\right )\right )}{8 e x^2}+\frac {b f^2 m n \log \left (1+\frac {e}{f x^2}\right ) \left (a+b \log \left (c x^n\right )\right )}{8 e^2}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{4 e x^2}+\frac {f^2 m \log \left (1+\frac {e}{f x^2}\right ) \left (a+b \log \left (c x^n\right )\right )^2}{4 e^2}+\frac {b^2 f^2 m n^2 \log \left (e+f x^2\right )}{32 e^2}-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}-\frac {b^2 f^2 m n^2 \text {Li}_2\left (-\frac {e}{f x^2}\right )}{16 e^2}-\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {e}{f x^2}\right )}{4 e^2}-\frac {b^2 f^2 m n^2 \text {Li}_3\left (-\frac {e}{f x^2}\right )}{8 e^2} \]

[Out]

-7/32*b^2*f*m*n^2/e/x^2-1/16*b^2*f^2*m*n^2*ln(x)/e^2-3/8*b*f*m*n*(a+b*ln(c*x^n))/e/x^2+1/8*b*f^2*m*n*ln(1+e/f/
x^2)*(a+b*ln(c*x^n))/e^2-1/4*f*m*(a+b*ln(c*x^n))^2/e/x^2+1/4*f^2*m*ln(1+e/f/x^2)*(a+b*ln(c*x^n))^2/e^2+1/32*b^
2*f^2*m*n^2*ln(f*x^2+e)/e^2-1/32*b^2*n^2*ln(d*(f*x^2+e)^m)/x^4-1/8*b*n*(a+b*ln(c*x^n))*ln(d*(f*x^2+e)^m)/x^4-1
/4*(a+b*ln(c*x^n))^2*ln(d*(f*x^2+e)^m)/x^4-1/16*b^2*f^2*m*n^2*polylog(2,-e/f/x^2)/e^2-1/4*b*f^2*m*n*(a+b*ln(c*
x^n))*polylog(2,-e/f/x^2)/e^2-1/8*b^2*f^2*m*n^2*polylog(3,-e/f/x^2)/e^2

________________________________________________________________________________________

Rubi [A]
time = 0.38, antiderivative size = 356, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 10, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {2342, 2341, 2425, 272, 46, 2380, 2379, 2438, 2421, 6724} \begin {gather*} -\frac {b f^2 m n \text {PolyLog}\left (2,-\frac {e}{f x^2}\right ) \left (a+b \log \left (c x^n\right )\right )}{4 e^2}-\frac {b^2 f^2 m n^2 \text {PolyLog}\left (2,-\frac {e}{f x^2}\right )}{16 e^2}-\frac {b^2 f^2 m n^2 \text {PolyLog}\left (3,-\frac {e}{f x^2}\right )}{8 e^2}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}+\frac {f^2 m \log \left (\frac {e}{f x^2}+1\right ) \left (a+b \log \left (c x^n\right )\right )^2}{4 e^2}+\frac {b f^2 m n \log \left (\frac {e}{f x^2}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{8 e^2}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{4 e x^2}-\frac {3 b f m n \left (a+b \log \left (c x^n\right )\right )}{8 e x^2}-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}+\frac {b^2 f^2 m n^2 \log \left (e+f x^2\right )}{32 e^2}-\frac {b^2 f^2 m n^2 \log (x)}{16 e^2}-\frac {7 b^2 f m n^2}{32 e x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*Log[c*x^n])^2*Log[d*(e + f*x^2)^m])/x^5,x]

[Out]

(-7*b^2*f*m*n^2)/(32*e*x^2) - (b^2*f^2*m*n^2*Log[x])/(16*e^2) - (3*b*f*m*n*(a + b*Log[c*x^n]))/(8*e*x^2) + (b*
f^2*m*n*Log[1 + e/(f*x^2)]*(a + b*Log[c*x^n]))/(8*e^2) - (f*m*(a + b*Log[c*x^n])^2)/(4*e*x^2) + (f^2*m*Log[1 +
 e/(f*x^2)]*(a + b*Log[c*x^n])^2)/(4*e^2) + (b^2*f^2*m*n^2*Log[e + f*x^2])/(32*e^2) - (b^2*n^2*Log[d*(e + f*x^
2)^m])/(32*x^4) - (b*n*(a + b*Log[c*x^n])*Log[d*(e + f*x^2)^m])/(8*x^4) - ((a + b*Log[c*x^n])^2*Log[d*(e + f*x
^2)^m])/(4*x^4) - (b^2*f^2*m*n^2*PolyLog[2, -(e/(f*x^2))])/(16*e^2) - (b*f^2*m*n*(a + b*Log[c*x^n])*PolyLog[2,
 -(e/(f*x^2))])/(4*e^2) - (b^2*f^2*m*n^2*PolyLog[3, -(e/(f*x^2))])/(8*e^2)

Rule 46

Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*x
)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && Lt
Q[m + n + 2, 0])

Rule 272

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 2341

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Log[c*x^
n])/(d*(m + 1))), x] - Simp[b*n*((d*x)^(m + 1)/(d*(m + 1)^2)), x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[m, -1
]

Rule 2342

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_.)*(x_))^(m_.), x_Symbol] :> Simp[(d*x)^(m + 1)*((a + b*Lo
g[c*x^n])^p/(d*(m + 1))), x] - Dist[b*n*(p/(m + 1)), Int[(d*x)^m*(a + b*Log[c*x^n])^(p - 1), x], x] /; FreeQ[{
a, b, c, d, m, n}, x] && NeQ[m, -1] && GtQ[p, 0]

Rule 2379

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_)^(r_.))), x_Symbol] :> Simp[(-Log[1 +
d/(e*x^r)])*((a + b*Log[c*x^n])^p/(d*r)), x] + Dist[b*n*(p/(d*r)), Int[Log[1 + d/(e*x^r)]*((a + b*Log[c*x^n])^
(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[p, 0]

Rule 2380

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*(x_)^(m_.))/((d_) + (e_.)*(x_)^(r_.)), x_Symbol] :> Dist[1/d,
 Int[x^m*(a + b*Log[c*x^n])^p, x], x] - Dist[e/d, Int[(x^(m + r)*(a + b*Log[c*x^n])^p)/(d + e*x^r), x], x] /;
FreeQ[{a, b, c, d, e, m, n, r}, x] && IGtQ[p, 0] && IGtQ[r, 0] && ILtQ[m, -1]

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2425

Int[Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))^(r_.)]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((g_.)*(x_))^(q_.),
 x_Symbol] :> With[{u = IntHide[(g*x)^q*(a + b*Log[c*x^n])^p, x]}, Dist[Log[d*(e + f*x^m)^r], u, x] - Dist[f*m
*r, Int[Dist[x^(m - 1)/(e + f*x^m), u, x], x], x]] /; FreeQ[{a, b, c, d, e, f, g, r, m, n, q}, x] && IGtQ[p, 0
] && RationalQ[m] && RationalQ[q]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{x^5} \, dx &=-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}-(2 f m) \int \left (-\frac {b^2 n^2}{32 x^3 \left (e+f x^2\right )}-\frac {b n \left (a+b \log \left (c x^n\right )\right )}{8 x^3 \left (e+f x^2\right )}-\frac {\left (a+b \log \left (c x^n\right )\right )^2}{4 x^3 \left (e+f x^2\right )}\right ) \, dx\\ &=-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {1}{2} (f m) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{x^3 \left (e+f x^2\right )} \, dx+\frac {1}{4} (b f m n) \int \frac {a+b \log \left (c x^n\right )}{x^3 \left (e+f x^2\right )} \, dx+\frac {1}{16} \left (b^2 f m n^2\right ) \int \frac {1}{x^3 \left (e+f x^2\right )} \, dx\\ &=-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {1}{2} (f m) \int \left (\frac {\left (a+b \log \left (c x^n\right )\right )^2}{e x^3}-\frac {f \left (a+b \log \left (c x^n\right )\right )^2}{e^2 x}+\frac {f^2 x \left (a+b \log \left (c x^n\right )\right )^2}{e^2 \left (e+f x^2\right )}\right ) \, dx+\frac {1}{4} (b f m n) \int \left (\frac {a+b \log \left (c x^n\right )}{e x^3}-\frac {f \left (a+b \log \left (c x^n\right )\right )}{e^2 x}+\frac {f^2 x \left (a+b \log \left (c x^n\right )\right )}{e^2 \left (e+f x^2\right )}\right ) \, dx+\frac {1}{32} \left (b^2 f m n^2\right ) \text {Subst}\left (\int \frac {1}{x^2 (e+f x)} \, dx,x,x^2\right )\\ &=-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {(f m) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{x^3} \, dx}{2 e}-\frac {\left (f^2 m\right ) \int \frac {\left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx}{2 e^2}+\frac {\left (f^3 m\right ) \int \frac {x \left (a+b \log \left (c x^n\right )\right )^2}{e+f x^2} \, dx}{2 e^2}+\frac {(b f m n) \int \frac {a+b \log \left (c x^n\right )}{x^3} \, dx}{4 e}-\frac {\left (b f^2 m n\right ) \int \frac {a+b \log \left (c x^n\right )}{x} \, dx}{4 e^2}+\frac {\left (b f^3 m n\right ) \int \frac {x \left (a+b \log \left (c x^n\right )\right )}{e+f x^2} \, dx}{4 e^2}+\frac {1}{32} \left (b^2 f m n^2\right ) \text {Subst}\left (\int \left (\frac {1}{e x^2}-\frac {f}{e^2 x}+\frac {f^2}{e^2 (e+f x)}\right ) \, dx,x,x^2\right )\\ &=-\frac {3 b^2 f m n^2}{32 e x^2}-\frac {b^2 f^2 m n^2 \log (x)}{16 e^2}-\frac {b f m n \left (a+b \log \left (c x^n\right )\right )}{8 e x^2}-\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2}{8 e^2}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{4 e x^2}+\frac {b^2 f^2 m n^2 \log \left (e+f x^2\right )}{32 e^2}-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x^2}{e}\right )}{8 e^2}+\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x^2}{e}\right )}{4 e^2}-\frac {\left (f^2 m\right ) \text {Subst}\left (\int x^2 \, dx,x,a+b \log \left (c x^n\right )\right )}{2 b e^2 n}+\frac {(b f m n) \int \frac {a+b \log \left (c x^n\right )}{x^3} \, dx}{2 e}-\frac {\left (b f^2 m n\right ) \int \frac {\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x^2}{e}\right )}{x} \, dx}{2 e^2}-\frac {\left (b^2 f^2 m n^2\right ) \int \frac {\log \left (1+\frac {f x^2}{e}\right )}{x} \, dx}{8 e^2}\\ &=-\frac {7 b^2 f m n^2}{32 e x^2}-\frac {b^2 f^2 m n^2 \log (x)}{16 e^2}-\frac {3 b f m n \left (a+b \log \left (c x^n\right )\right )}{8 e x^2}-\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2}{8 e^2}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{4 e x^2}-\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^3}{6 b e^2 n}+\frac {b^2 f^2 m n^2 \log \left (e+f x^2\right )}{32 e^2}-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x^2}{e}\right )}{8 e^2}+\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x^2}{e}\right )}{4 e^2}+\frac {b^2 f^2 m n^2 \text {Li}_2\left (-\frac {f x^2}{e}\right )}{16 e^2}+\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f x^2}{e}\right )}{4 e^2}-\frac {\left (b^2 f^2 m n^2\right ) \int \frac {\text {Li}_2\left (-\frac {f x^2}{e}\right )}{x} \, dx}{4 e^2}\\ &=-\frac {7 b^2 f m n^2}{32 e x^2}-\frac {b^2 f^2 m n^2 \log (x)}{16 e^2}-\frac {3 b f m n \left (a+b \log \left (c x^n\right )\right )}{8 e x^2}-\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2}{8 e^2}-\frac {f m \left (a+b \log \left (c x^n\right )\right )^2}{4 e x^2}-\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^3}{6 b e^2 n}+\frac {b^2 f^2 m n^2 \log \left (e+f x^2\right )}{32 e^2}-\frac {b^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )}{32 x^4}-\frac {b n \left (a+b \log \left (c x^n\right )\right ) \log \left (d \left (e+f x^2\right )^m\right )}{8 x^4}-\frac {\left (a+b \log \left (c x^n\right )\right )^2 \log \left (d \left (e+f x^2\right )^m\right )}{4 x^4}+\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {f x^2}{e}\right )}{8 e^2}+\frac {f^2 m \left (a+b \log \left (c x^n\right )\right )^2 \log \left (1+\frac {f x^2}{e}\right )}{4 e^2}+\frac {b^2 f^2 m n^2 \text {Li}_2\left (-\frac {f x^2}{e}\right )}{16 e^2}+\frac {b f^2 m n \left (a+b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {f x^2}{e}\right )}{4 e^2}-\frac {b^2 f^2 m n^2 \text {Li}_3\left (-\frac {f x^2}{e}\right )}{8 e^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 0.28, size = 1111, normalized size = 3.12 \begin {gather*} -\frac {24 a^2 e f m x^2+36 a b e f m n x^2+21 b^2 e f m n^2 x^2+48 a^2 f^2 m x^4 \log (x)+24 a b f^2 m n x^4 \log (x)+6 b^2 f^2 m n^2 x^4 \log (x)-48 a b f^2 m n x^4 \log ^2(x)-12 b^2 f^2 m n^2 x^4 \log ^2(x)+16 b^2 f^2 m n^2 x^4 \log ^3(x)+48 a b e f m x^2 \log \left (c x^n\right )+36 b^2 e f m n x^2 \log \left (c x^n\right )+96 a b f^2 m x^4 \log (x) \log \left (c x^n\right )+24 b^2 f^2 m n x^4 \log (x) \log \left (c x^n\right )-48 b^2 f^2 m n x^4 \log ^2(x) \log \left (c x^n\right )+24 b^2 e f m x^2 \log ^2\left (c x^n\right )+48 b^2 f^2 m x^4 \log (x) \log ^2\left (c x^n\right )-48 a b f^2 m n x^4 \log (x) \log \left (1-\frac {i \sqrt {f} x}{\sqrt {e}}\right )-12 b^2 f^2 m n^2 x^4 \log (x) \log \left (1-\frac {i \sqrt {f} x}{\sqrt {e}}\right )+24 b^2 f^2 m n^2 x^4 \log ^2(x) \log \left (1-\frac {i \sqrt {f} x}{\sqrt {e}}\right )-48 b^2 f^2 m n x^4 \log (x) \log \left (c x^n\right ) \log \left (1-\frac {i \sqrt {f} x}{\sqrt {e}}\right )-48 a b f^2 m n x^4 \log (x) \log \left (1+\frac {i \sqrt {f} x}{\sqrt {e}}\right )-12 b^2 f^2 m n^2 x^4 \log (x) \log \left (1+\frac {i \sqrt {f} x}{\sqrt {e}}\right )+24 b^2 f^2 m n^2 x^4 \log ^2(x) \log \left (1+\frac {i \sqrt {f} x}{\sqrt {e}}\right )-48 b^2 f^2 m n x^4 \log (x) \log \left (c x^n\right ) \log \left (1+\frac {i \sqrt {f} x}{\sqrt {e}}\right )-24 a^2 f^2 m x^4 \log \left (e+f x^2\right )-12 a b f^2 m n x^4 \log \left (e+f x^2\right )-3 b^2 f^2 m n^2 x^4 \log \left (e+f x^2\right )+48 a b f^2 m n x^4 \log (x) \log \left (e+f x^2\right )+12 b^2 f^2 m n^2 x^4 \log (x) \log \left (e+f x^2\right )-24 b^2 f^2 m n^2 x^4 \log ^2(x) \log \left (e+f x^2\right )-48 a b f^2 m x^4 \log \left (c x^n\right ) \log \left (e+f x^2\right )-12 b^2 f^2 m n x^4 \log \left (c x^n\right ) \log \left (e+f x^2\right )+48 b^2 f^2 m n x^4 \log (x) \log \left (c x^n\right ) \log \left (e+f x^2\right )-24 b^2 f^2 m x^4 \log ^2\left (c x^n\right ) \log \left (e+f x^2\right )+24 a^2 e^2 \log \left (d \left (e+f x^2\right )^m\right )+12 a b e^2 n \log \left (d \left (e+f x^2\right )^m\right )+3 b^2 e^2 n^2 \log \left (d \left (e+f x^2\right )^m\right )+48 a b e^2 \log \left (c x^n\right ) \log \left (d \left (e+f x^2\right )^m\right )+12 b^2 e^2 n \log \left (c x^n\right ) \log \left (d \left (e+f x^2\right )^m\right )+24 b^2 e^2 \log ^2\left (c x^n\right ) \log \left (d \left (e+f x^2\right )^m\right )-12 b f^2 m n x^4 \left (4 a+b n+4 b \log \left (c x^n\right )\right ) \text {Li}_2\left (-\frac {i \sqrt {f} x}{\sqrt {e}}\right )-12 b f^2 m n x^4 \left (4 a+b n+4 b \log \left (c x^n\right )\right ) \text {Li}_2\left (\frac {i \sqrt {f} x}{\sqrt {e}}\right )+48 b^2 f^2 m n^2 x^4 \text {Li}_3\left (-\frac {i \sqrt {f} x}{\sqrt {e}}\right )+48 b^2 f^2 m n^2 x^4 \text {Li}_3\left (\frac {i \sqrt {f} x}{\sqrt {e}}\right )}{96 e^2 x^4} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*Log[c*x^n])^2*Log[d*(e + f*x^2)^m])/x^5,x]

[Out]

-1/96*(24*a^2*e*f*m*x^2 + 36*a*b*e*f*m*n*x^2 + 21*b^2*e*f*m*n^2*x^2 + 48*a^2*f^2*m*x^4*Log[x] + 24*a*b*f^2*m*n
*x^4*Log[x] + 6*b^2*f^2*m*n^2*x^4*Log[x] - 48*a*b*f^2*m*n*x^4*Log[x]^2 - 12*b^2*f^2*m*n^2*x^4*Log[x]^2 + 16*b^
2*f^2*m*n^2*x^4*Log[x]^3 + 48*a*b*e*f*m*x^2*Log[c*x^n] + 36*b^2*e*f*m*n*x^2*Log[c*x^n] + 96*a*b*f^2*m*x^4*Log[
x]*Log[c*x^n] + 24*b^2*f^2*m*n*x^4*Log[x]*Log[c*x^n] - 48*b^2*f^2*m*n*x^4*Log[x]^2*Log[c*x^n] + 24*b^2*e*f*m*x
^2*Log[c*x^n]^2 + 48*b^2*f^2*m*x^4*Log[x]*Log[c*x^n]^2 - 48*a*b*f^2*m*n*x^4*Log[x]*Log[1 - (I*Sqrt[f]*x)/Sqrt[
e]] - 12*b^2*f^2*m*n^2*x^4*Log[x]*Log[1 - (I*Sqrt[f]*x)/Sqrt[e]] + 24*b^2*f^2*m*n^2*x^4*Log[x]^2*Log[1 - (I*Sq
rt[f]*x)/Sqrt[e]] - 48*b^2*f^2*m*n*x^4*Log[x]*Log[c*x^n]*Log[1 - (I*Sqrt[f]*x)/Sqrt[e]] - 48*a*b*f^2*m*n*x^4*L
og[x]*Log[1 + (I*Sqrt[f]*x)/Sqrt[e]] - 12*b^2*f^2*m*n^2*x^4*Log[x]*Log[1 + (I*Sqrt[f]*x)/Sqrt[e]] + 24*b^2*f^2
*m*n^2*x^4*Log[x]^2*Log[1 + (I*Sqrt[f]*x)/Sqrt[e]] - 48*b^2*f^2*m*n*x^4*Log[x]*Log[c*x^n]*Log[1 + (I*Sqrt[f]*x
)/Sqrt[e]] - 24*a^2*f^2*m*x^4*Log[e + f*x^2] - 12*a*b*f^2*m*n*x^4*Log[e + f*x^2] - 3*b^2*f^2*m*n^2*x^4*Log[e +
 f*x^2] + 48*a*b*f^2*m*n*x^4*Log[x]*Log[e + f*x^2] + 12*b^2*f^2*m*n^2*x^4*Log[x]*Log[e + f*x^2] - 24*b^2*f^2*m
*n^2*x^4*Log[x]^2*Log[e + f*x^2] - 48*a*b*f^2*m*x^4*Log[c*x^n]*Log[e + f*x^2] - 12*b^2*f^2*m*n*x^4*Log[c*x^n]*
Log[e + f*x^2] + 48*b^2*f^2*m*n*x^4*Log[x]*Log[c*x^n]*Log[e + f*x^2] - 24*b^2*f^2*m*x^4*Log[c*x^n]^2*Log[e + f
*x^2] + 24*a^2*e^2*Log[d*(e + f*x^2)^m] + 12*a*b*e^2*n*Log[d*(e + f*x^2)^m] + 3*b^2*e^2*n^2*Log[d*(e + f*x^2)^
m] + 48*a*b*e^2*Log[c*x^n]*Log[d*(e + f*x^2)^m] + 12*b^2*e^2*n*Log[c*x^n]*Log[d*(e + f*x^2)^m] + 24*b^2*e^2*Lo
g[c*x^n]^2*Log[d*(e + f*x^2)^m] - 12*b*f^2*m*n*x^4*(4*a + b*n + 4*b*Log[c*x^n])*PolyLog[2, ((-I)*Sqrt[f]*x)/Sq
rt[e]] - 12*b*f^2*m*n*x^4*(4*a + b*n + 4*b*Log[c*x^n])*PolyLog[2, (I*Sqrt[f]*x)/Sqrt[e]] + 48*b^2*f^2*m*n^2*x^
4*PolyLog[3, ((-I)*Sqrt[f]*x)/Sqrt[e]] + 48*b^2*f^2*m*n^2*x^4*PolyLog[3, (I*Sqrt[f]*x)/Sqrt[e]])/(e^2*x^4)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.59, size = 13825, normalized size = 38.83

method result size
risch \(\text {Expression too large to display}\) \(13825\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*ln(c*x^n))^2*ln(d*(f*x^2+e)^m)/x^5,x,method=_RETURNVERBOSE)

[Out]

result too large to display

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x^2+e)^m)/x^5,x, algorithm="maxima")

[Out]

-1/32*(8*b^2*m*log(x^n)^2 + 4*(m*n + 4*m*log(c))*a*b + (m*n^2 + 4*m*n*log(c) + 8*m*log(c)^2)*b^2 + 8*a^2*m + 4
*((m*n + 4*m*log(c))*b^2 + 4*a*b*m)*log(x^n))*log(f*x^2 + e)/x^4 + integrate(1/16*((8*(f*m + 2*f*log(d))*a^2 +
 4*(f*m*n + 4*(f*m + 2*f*log(d))*log(c))*a*b + (f*m*n^2 + 4*f*m*n*log(c) + 8*(f*m + 2*f*log(d))*log(c)^2)*b^2)
*x^2 + 8*((f*m + 2*f*log(d))*b^2*x^2 + 2*b^2*e*log(d))*log(x^n)^2 + 16*(b^2*log(c)^2*log(d) + 2*a*b*log(c)*log
(d) + a^2*log(d))*e + 4*((4*(f*m + 2*f*log(d))*a*b + (f*m*n + 4*(f*m + 2*f*log(d))*log(c))*b^2)*x^2 + 8*(b^2*l
og(c)*log(d) + a*b*log(d))*e)*log(x^n))/(f*x^7 + x^5*e), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x^2+e)^m)/x^5,x, algorithm="fricas")

[Out]

integral((b^2*log(c*x^n)^2 + 2*a*b*log(c*x^n) + a^2)*log((f*x^2 + e)^m*d)/x^5, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*ln(c*x**n))**2*ln(d*(f*x**2+e)**m)/x**5,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*log(c*x^n))^2*log(d*(f*x^2+e)^m)/x^5,x, algorithm="giac")

[Out]

integrate((b*log(c*x^n) + a)^2*log((f*x^2 + e)^m*d)/x^5, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\ln \left (d\,{\left (f\,x^2+e\right )}^m\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{x^5} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(d*(e + f*x^2)^m)*(a + b*log(c*x^n))^2)/x^5,x)

[Out]

int((log(d*(e + f*x^2)^m)*(a + b*log(c*x^n))^2)/x^5, x)

________________________________________________________________________________________